package com.gxwz.document.business.entity;

import java.io.Serializable;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@SuppressWarnings({ "serial", "unused" })
@Entity
@Table(name="literature")
public class Literature implements Serializable{
	
	@Id
	@Column(name = "litId")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int litId;
	
	@Column(name = "litName")
	private String litName;
	
	@Column(name = "litAutor")
	private String litAutor;
	
	@Column(name = "litPrice")
	private Double  litPrice;
	
	@Column(name = "litPublished")
	private String  litPublished;
	
	@Column(name = "litAbstract")
	private String litAbstract;
	
	@Column(name = "litGrade")
	private String litGrade;
	
	@Column(name = "litTheme")
	private String litTheme;
	
	@Column(name="litType")
	private String litType;
	
	@Column(name = "litUploadTime")
	private Date  litUploadTime;
	
	@Column(name = "litSize")
	private Double  litSize;
	
	@Column(name = "uploadFileName")
	private String  uploadFileName;
	
	@Column(name = "savePath")
	private String  savePath;
	
	@Column(name = "uploadContentType")
	private String  uploadContentType;
	
	@Column(name = "deleted")
	private int  deleted;
	
	@OneToOne
	@JoinColumn(referencedColumnName = "classId", name = "classId")
	private Classification classId;

	public int getLitId() {
		return litId;
	}

	public void setLitId(int litId) {
		this.litId = litId;
	}

	public String getLitName() {
		return litName;
	}

	public void setLitName(String litName) {
		this.litName = litName;
	}

	public String getLitAutor() {
		return litAutor;
	}

	public void setLitAutor(String litAutor) {
		this.litAutor = litAutor;
	}

	
	public String getLitGrade() {
		return litGrade;
	}

	public void setLitGrade(String litGrade) {
		this.litGrade = litGrade;
	}

	public Double getLitPrice() {
		return litPrice;
	}

	public void setLitPrice(Double litPrice) {
		this.litPrice = litPrice;
	}

	public String getLitPublished() {
		return litPublished;
	}

	public void setLitPublished(String litPublished) {
		this.litPublished = litPublished;
	}

	public String getLitAbstract() {
		return litAbstract;
	}

	public void setLitAbstract(String litAbstract) {
		this.litAbstract = litAbstract;
	}

	public String getLitTheme() {
		return litTheme;
	}

	public void setLitTheme(String litTheme) {
		this.litTheme = litTheme;
	}

	public String getLitType() {
		return litType;
	}

	public void setLitType(String litType) {
		this.litType = litType;
	}

	public Classification getClassId() {
		return classId;
	}

	public void setClassId(Classification classId) {
		this.classId = classId;
	}
	
	public Date getLitUploadTime() {
		return litUploadTime;
	}

	public void setLitUploadTime(Date litUploadTime) {
		this.litUploadTime = litUploadTime;
	}

	
	public Double getLitSize() {
		return litSize;
	}

	public void setLitSize(Double litSize) {
		this.litSize = litSize;
	}

	public String getUploadFileName() {
		return uploadFileName;
	}

	public void setUploadFileName(String uploadFileName) {
		this.uploadFileName = uploadFileName;
	}
	
	public String getSavePath() {
		return savePath;
	}

	public void setSavePath(String savePath) {
		this.savePath = savePath;
	}
	public void setUploadContentType(String uploadContentType) {
		this.uploadContentType = uploadContentType;
	}

	public String getUploadContentType() {
		return uploadContentType;
	}

	public void setDeleted(int deleted) {
		this.deleted = deleted;
	}

	public int getDeleted() {
		return deleted;
	}
}
